package com.example.personal.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * Created on 2022/3/9.
 *
 * @author taodq
 */
@Getter
@Setter
@TableName("user")
public class UserPO implements Serializable {

    /**
     * 主键
     */
    @TableId(value = "u_id", type = IdType.INPUT)
    private Long userId;

    /**
     * 用户姓名
     */
    @TableField(value = "u_name")
    @NotNull(message = "用户名不能为空")
    private String userName;
}
